package demo2;

import java.util.ArrayList;

public class test2 {
    public static void main(String[] args) {
        ArrayList<String> arrayList = new ArrayList<>();
        arrayList.add("abc");
        arrayList.add("efg");
        arrayList.add("kjl");
        arrayList.add("mmm");
        for (String x: arrayList){
            System.out.println(x+" ");
        }
    }
}
